///*
// * Copyright 2008 Jeffrey R Griffin.
// */
//
//package net.visibleblue.xstream;
//
//import android.content.Intent;
//import android.content.PackageParser$IntentInfo;
//
//import com.thoughtworks.xstream.converters.Converter;
//import com.thoughtworks.xstream.converters.MarshallingContext;
//import com.thoughtworks.xstream.converters.UnmarshallingContext;
//import com.thoughtworks.xstream.io.HierarchicalStreamReader;
//import com.thoughtworks.xstream.io.HierarchicalStreamWriter;
//
//public class IntentInfoConverter implements Converter {
//
//	@Override
//	public void marshal(Object arg0, HierarchicalStreamWriter arg1,
//			MarshallingContext arg2) {
//		IntentInfo info = (IntentInfo)arg0;
//		arg1.addAttribute("desc", info.Description);
//		arg1.startNode("intent");
//		arg2.convertAnother(info.Intent);
//		arg1.endNode();
//	}
//
//	@Override
//	public Object unmarshal(HierarchicalStreamReader arg0,
//			UnmarshallingContext arg1) {
//		String desc = arg0.getAttribute("desc");
//		arg0.moveDown();
//		Intent intent = (Intent)arg1.convertAnother(null, Intent.class);
//		arg0.moveUp();
//		return new IntentInfo(desc, intent);
//	}
//
//	@Override
//	public boolean canConvert(Class arg0) {
//		return arg0.equals(IntentInfo.class);
//	}
//
//}
